package cn.liulin.java8.pojo;

/**
 * cn.liulin.java8.pojo$
 *
 * @author ll
 * @date 2021-10-13 14:18:37
 **/
public class Dish {
    private String name;

    private int calories;

    private boolean isVegetarian;

    public Dish(String name) {
        this.name = name;
    }

    public Dish(String name, int calories) {
        this.name = name;
        this.calories = calories;
    }

    public Dish(String name, boolean isVegetarian) {
        this.name = name;
        this.isVegetarian = isVegetarian;
    }

    public boolean isVegetarian() {
        return isVegetarian;
    }

    public void setVegetarian(boolean vegetarian) {
        isVegetarian = vegetarian;
    }

    public int getCalories() {
        return calories;
    }

    public void setCalories(int calories) {
        this.calories = calories;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
